package cn.gov.pbc.dream.dao;

import cn.gov.pbc.dream.pojo.repository.CityDo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CityDoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CityDo record);

    int insertSelective(CityDo record);

    CityDo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CityDo record);

    int updateByPrimaryKey(CityDo record);

    CityDo selectByCodeAndProvinceId(@Param("code") String code,
                                     @Param("provinceId") Integer provinceId);

    List<CityDo> selectByProvinceId(Integer provinceId);
}